//
//  OperationModel.m
//  YSSmartHome
//
//  Created by Yahaong on 16/8/19.
//  Copyright © 2016年 yahaong. All rights reserved.
//

#import "OperationModel.h"
#import "DataBaseManager.h"
@implementation OperationModel

+ (OperationModel *)operationWithApsn:(uint32_t)apsn
                                 luid:(uint64_t)luid
                          triggerApsn:(uint32_t)triggerApsn
                          triggerLuid:(uint64_t)triggerLuid
                                 time:(uint32_t)time
                            operation:(NSString *)operation {
    OperationModel *oper = [[OperationModel alloc]init];
    oper.apsn = apsn;
    oper.luid = luid;
    oper.triggerApsn = triggerApsn;
    oper.triggerLuid = triggerLuid;
    oper.time = time;
    oper.operation = operation;
    return oper;
}
@end
